coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: partLabelGroup
  displayName: Part Label Group
  pluralName: partLabelGroups
  displayPluralName: Part Label Groups
  dataSource: main
  tableName: design_part_label_groups
  titleAttribute: name
  description: Part Label Groups
  icon: BookOutlined
  core: false
  performDdl: true
spec:
  attributes:
    product:
      type: relation
      relType: manyToOne
      target: product
      inversedBy: partLabelGroups
      columnName: product_id
      displayName: Product
      description: Product
      required: true
    name:
      type: string
      columnName: name
      displayName: Name
      description: Name
      length: 250
      required: true
      colWidth: 300
    initialValue:
      type: int
      columnName: start_value
      displayName: Start Value
      description: Start Value
      required: true
      minRange: 0
      colWidth: 180
      fieldWidth: 3
    endValue:
      type: int
      columnName: end_value
      displayName: End Value
      description: End Value
      required: true
      minRange: 0
      colWidth: 180
      fieldWidth: 3
    militaryAcceptance:
      type: bool
      columnName: is_military_acceptance
      displayName: Military acceptance
      description: Military acceptance flag
    parts:
      type: relation
      relType: oneToMany
      target: part
      mappedBy: labelGroup
      displayName: Parts
      description: Parts
